<#include "/common/taglibs.ftl" />
<!-- start i18n -->
<#assign languageScript = '/static/scripts/language/' + currentLocale + '.js'/>
<script src="${static}${urls.getForLookupPath(languageScript)}" type="text/javascript"></script>
<!-- end i18n -->
<script type="text/javascript">
    jQuery(function($){
        var a = "${languageScript}"
        $("#language_select li").click(function(){
            var locale = $(this).data("locale");
            //$.cookie('locale', locale, {path:_ctx, expires: 365});
            $("#localeForm input[name='lang']").val(locale);
            $("#localeForm").submit();
        });
    });
</script>